<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>有猫腻官网</title>
    <link rel="stylesheet" href="__PUBLIC__/ymn_admin/css/reset.css" />
    <link rel="stylesheet" href="__PUBLIC__/ymn_admin/css/common.css" />
    <link rel="stylesheet" href="__PUBLIC__/ymn_admin/css/cp.css" />
</head>
<body>
<!--#include file="header.html"-->
<include file="Index/login_header"/>

<div class="wrapper">
    <div class="index_content content">
        <!--<div class="title_top"><h2>下载中心</h2><span>所有下载内容都在这里</span></div>-->
        <div class="title_content">
            <div class="tabs_box">
                <ul class="tabs_ul">
                    <li><a href="#tabs1">下载中心</a><i class="triangle-left"></i></li>
                    <!-- <li><a href="#tabs2">渠道列表</a><i class="triangle-left"></i></li> -->
                </ul>
                <div class="tabs_container">
                    <div id="tabs1" class="tabs_content">
                        <h1><a href="/Index/index">返回</a></h1>
                        
                        <a class="xzbb" href="javascript:void(0)"data-s="{$s}">新增版本</a>
                        <if condition="$sdk_add neq NULL">
                        <table class="cp_list_table">
                            <thead>
                            <tr>
                                <th >名称</th>
                                <th >版本号</th>
                                <th >新增时间</th>
                                <th>发布时间</th>
                                <th>状态</th>
                                <th>操作</th>
                                
                                
                            </tr>
                            </thead>
                            <tbody>

                            <foreach name="sdk_add" item="vo">
                            <tr>
                                <td>{$vo.name}</td>
                                <td>{$vo.version}</td>
                                <td>{$vo.add_time}</td>
                                <td>{$vo.release_time}</td>
                                <td>
                                    <if condition="($vo.state eq 0)AND($vo.state neq NULL)">在线
                                    <else/>未在线
                                    </if>
                                </td>
                                <td><a href="javascript:void(0)" data-arr='{$vo|json_encode}' class="bbbj">编辑 </a>
                                    <if condition="$vo.state_zx eq 0">
                                    <a class="xzbb_sx" data-ssid="{$vo.id}" href="javascript:void(0)">上线 </a>
                                    <else/>上线
                                    </if>
                                    <if condition="$vo.state_zx eq 1">
                                    <a class="xzbb_sx" data-ssid="{$vo.id}" href="javascript:void(0)">下线</a>
                                    <else/>下线
                                    </if>
                                </td>
                            </tr>
                            </foreach>
                            
                            </tbody>
                        </table>
                        <else />
                            
                            <h3 class="zwnr">暂无内容<h3>
                            
                        </if>
                    </div>
                    
                    <div id="tabs2" class="tabs_content">
                        
                    </div>
                    
                </div>
            </div>
        </div>
    </div>
</div>
<div class="dialog_bg hide"></div>
<div class="dialog aa hide">
    <div class="dialog_title">
        <h3 class="sp_name">新增下载内容</h3>
        <span class="dialog_close">关闭</span>
    </div>
    <form id="form" action="" method="post" enctype="multipart/form-data">
    <div class="bjqdxx">
        <ul>
            <li>
                <label>请上传包:</label>
                <input  id="upload_sdk" name="photo" type="file" />
            </li>
            <li>
                <label for="bjqdxx_qdm">名称:</label>
                <input id="id" type="hidden" name="id" value =""/>
                <input id="bjqdxx_qdm" name="name" type="text" />
            </li>
            <li>
                <label for="bjxx_bbh">版本号:</label>
                <input id="bjxx_bbh" name="version_sdk" type="text" />
            </li>
            <li>
                <label>更新说明:</label>
                <textarea name="textarea" id="bjqdxx_cjsj" ></textarea>
                
            </li>
            
        </ul>
        <button type="submit" class="qd" id="bjqdxx_btn">确定</button>
    </div>
    </form>
    <!-- <form >
    <div class="bjqdxx">
        <ul>
            <li>
                <label>请上传包:</label>
                <input  id="file" name="file" type="file" />
            </li>
            
            
        </ul>
        <input type="hidden" id="flag" name="flag" value="ajax文件上传"/>
        <button type="button" class="qd" id="btnUpload">确定</button>
    </div>
    </form> -->
</div>
<script src="__PUBLIC__/ymn_admin/js/jquery-1.11.2.min.js"></script>
<script src="__PUBLIC__/ymn_admin/js/ajaxUploadFile.js"></script>
<script src="__PUBLIC__/ymn_admin/js/admin.js"></script>
</body>
</html>